﻿
using SharedResources.Utilities;
using SharedResources.ViewModel;

namespace MainModule.ViewModel
{
    public class StatusBarViewModel: BaseViewModel
    {

        public StatusBarViewModel()
        {
            UnderlyingData.OnDatasetAdded += (delegate
                                               {
                                                   StatusMessage = "Dataset: Loaded";
                                                   OnPropertyChanged("StatusMessage");
                                               });
        }

        private string _statusMessage = "Dataset: None";
        public string StatusMessage
        {
            get { return _statusMessage; }
            set { _statusMessage = value; }
        }
    }
}
